package jmine.tec.script.persistent.domain;

import bancosys.tec.persist.builders.AbstractDBBuilder;

/**
 * @author lundberg
 */
public class ScriptPurposeBuilder extends AbstractDBBuilder<ScriptPurpose> {

    private ScriptPurpose entity = this.createBean(ScriptPurpose.class);

    @Override
    protected ScriptPurpose doBuild() {
        return this.entity;
    }

    public ScriptPurposeBuilder mnemonico(String value) {
        this.entity.setMnemonico(value);
        return this;
    }

    public ScriptPurposeBuilder executionContext(String value) {
        this.entity.setExecutionContext(value);
        return this;
    }

    public ScriptPurposeBuilder dependencyContext(String value) {
        this.entity.setDependencyContext(value);
        return this;
    }

    public ScriptPurposeBuilder validationContext(String value) {
        this.entity.setValidationContext(value);
        return this;
    }

    public ScriptPurposeBuilder withInitScript(Script value) {
        this.entity.addInitScript(value);
        return this;
    }

}
